package com.rental.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rental.model.entity.user.UserInfo;
import com.rental.model.form.user.GetRecordForm;
import com.rental.model.form.user.PhoneAndCodeForm;
import com.rental.model.vo.user.RecordVo;

public interface IUserInfoService extends IService<UserInfo> {

    String sendCode(PhoneAndCodeForm phoneAndCodeForm);

    String login(PhoneAndCodeForm phoneAndCodeForm);

    UserInfo getUserInfo(String token);

    RecordVo getBrowseRecord(GetRecordForm getRecordForm);

    RecordVo getCollectInfo(GetRecordForm getRecordForm);

    RecordVo getPublish(GetRecordForm getRecordForm);

    Long countBannedUser();

}
